<html>
<head><meta charset="utf-8"><title>Linking failed during local test run · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Linking.20failed.20during.20local.20test.20run.html">Linking failed during local test run</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="214593324"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Linking%20failed%20during%20local%20test%20run/near/214593324" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> vn-ki <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Linking.20failed.20during.20local.20test.20run.html#214593324">(Oct 26 2020 at 15:57)</a>:</h4>
<p>On running <code>./x.py test src/test/mir-opt --bless</code>, I get the following fails for some tests</p>
<div class="codehilite"><pre><span></span><code>---- [mir-opt] mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs stdout ----

error: compilation failed!
status: exit code: 1
command: &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc&quot; &quot;/mnt/videos/others/rust/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs&quot; &quot;-Zthreads=1&quot; &quot;--target=x86_64-unknown-linux-gnu&quot; &quot;-Zdump-mir=all&quot; &quot;-Zmir-opt-level=3&quot; &quot;-Zvalidate-mir&quot; &quot;-Zdump-mir-exclude-pass-number&quot;
 &quot;-Zdump-mir-dir=/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read&quot; &quot;-C&quot; &quot;prefer-dynamic&quot; &quot;--out-dir&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read&quot; &quot;-Crpath&quot; &quot;-Cdebuginfo=0
&quot; &quot;-Zunstable-options&quot; &quot;-Lnative=/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers&quot; &quot;-O&quot; &quot;-L&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/auxiliary&quot;
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
warning: unused variable: `y`
 --&gt; /mnt/videos/others/rust/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs:8:9
  |
8 |     let y = x.1;
  |         ^ help: if this is intentional, prefix it with an underscore: `_y`
  |
  = note: `#[warn(unused_variables)]` on by default

error: linking with `cc` failed: exit code: 1
  |
  = note: &quot;cc&quot; &quot;-Wl,--as-needed&quot; &quot;-Wl,-z,noexecstack&quot; &quot;-m64&quot; &quot;-Wl,--eh-frame-hdr&quot; &quot;-L&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/muta
ble_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.0.rcgu.o&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.1.rc
gu.o&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.2.rcgu.o&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable
_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.3.rcgu.o&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_agg
regate_partial_read.7rcbfp3g-cgu.4.rcgu.o&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.5.rcgu.o&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linu
x-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.6.rcgu.o&quot; &quot;-o&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_a
ggregate_partial_read&quot; &quot;-Wl,--gc-sections&quot; &quot;-pie&quot; &quot;-Wl,-zrelro&quot; &quot;-Wl,-znow&quot; &quot;-Wl,-O1&quot; &quot;-nodefaultlibs&quot; &quot;-L&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers&quot; &quot;-L&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/a
uxiliary&quot; &quot;-L&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;-Wl,--start-group&quot; &quot;-L&quot; &quot;/mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;-lstd-c92c2550b570c067&quot; &quot;-Wl,--end-group&quot; &quot;-Wl,-Bstatic&quot; &quot;/mnt/vi
deos/others/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-39695e8cfb1bcdf3.rlib&quot; &quot;-Wl,-Bdynamic&quot; &quot;-lgcc_s&quot; &quot;-lutil&quot; &quot;-lrt&quot; &quot;-lpthread&quot; &quot;-lm&quot; &quot;-ldl&quot; &quot;-lc&quot; &quot;-Wl,-rpath,$ORIGIN/../../../../stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;-Wl,-rpath,/mnt/video
s/others/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;-Wl,--enable-new-dtags&quot;
  = note: cc: error: /mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.0.rcgu.o: No such file or directory
          cc: error: /mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.2.rcgu.o: No such file or directory
          cc: error: /mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.4.rcgu.o: No such file or directory
          cc: error: /mnt/videos/others/rust/build/x86_64-unknown-linux-gnu/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read/mutable_variable_aggregate_partial_read.mutable_variable_aggregate_partial_read.7rcbfp3g-cgu.5.rcgu.o: No such file or directory
</code></pre></div>



<a name="214596267"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Linking%20failed%20during%20local%20test%20run/near/214596267" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> vn-ki <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Linking.20failed.20during.20local.20test.20run.html#214596267">(Oct 26 2020 at 16:18)</a>:</h4>
<p>Never mind, it fixed itself somehow</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>